package com.lyf.design.learn.designmodel.decorator;

/**
 * @AUTHOR LYF
 * @DATE 2022/6/9
 * @VERSION 1.0
 * @DESC
 */
public class Tank implements GameObject{
    private String name;
    private Integer len;

    public Tank(String name, Integer len) {
        this.name = name;
        this.len = len;
    }

    @Override
    public void init() {
        System.out.println("init..."+name+":"+len+"");
    }

    @Override
    public void paint() {
        System.out.println("paint..."+name+":"+len+"");    }
    }
